package a.f;

import a.c.ab;
import a.c.*;
import a.c.v;
import a.c.y;
import a.c.z;
import a.d.t;

import java.util.HashMap;
import java.util.Map;

public class ib
  extends r
{
  private ab g = new ab();
  public static final Object h = "y.layout.SelfLoopLayouter.KEEP_SELF_LOOP_LAYOUT_DPKEY";
  public static final byte i = 0;
  public static final byte j = 1;
  private static final double k = 5.0D;
  private static final double l = 15.0D;
  private byte m = 0;
  private boolean n = true;
  private double o = 5.0D;
  private int p = 2;
  private Map q;
  private int r = 0;
  private int s = 1;
  private int t = 2;
  private int u = 3;
  private boolean v;
  public static boolean w;
  
  public ib() {}
  
  public ib(rc paramrc)
  {
    this();
    a(paramrc);
  }
  
  public int b()
  {
    return this.p;
  }
  
  public void a(int paramInt)
  {
    this.p = paramInt;
  }
  
  public void a(double paramDouble)
  {
    this.o = paramDouble;
  }
  
  public double c()
  {
    return this.o;
  }
  
  public boolean d()
  {
    return this.n;
  }
  
  public void a(boolean paramBoolean)
  {
    this.n = paramBoolean;
  }
  
  public byte e()
  {
    return this.m;
  }
  
  public void a(byte paramByte)
  {
    this.m = paramByte;
  }
  
  public void doLayout(o paramo)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    k localk = paramo.c(h);
    if (!bool)
    {
      if (localk == null)
      {
        if (bool) {
          break label125;
        }
        if (!this.v) {}
      }
      else
      {
        this.q = new HashMap();
      }
    }
    else
    {
      a.c.w localw = paramo.v();
      do
      {
        if (!localw.e()) {
          break;
        }
        if (bool) {
          break label159;
        }
        this.q.put(localw.d(), paramo.o(localw.d()));
        localw.f();
        if (i1 != 0) {
          break label158;
        }
      } while (i1 == 0);
    }
    if ((!bool) && (!bool)) {
      if (a() != null)
      {
        label125:
        d(paramo);
        a(paramo);
        e(paramo);
        c(paramo);
        if (bool) {
          return;
        }
        if (i1 == 0) {
          break label163;
        }
      }
    }
    label158:
    label159:
    c(paramo);
    label163:
    this.q = null;
  }
  
  private t a(z paramz)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    a.d.w localw1 = (a.d.w)paramz.a();
    double d1 = localw1.a();
    double d2 = localw1.a();
    double d3 = localw1.b();
    double d4 = localw1.b();
    y localy = paramz.h();
    if (localy.e()) {}
    while (bool)
    {
      a.d.w localw2 = (a.d.w)localy.j();
      d1 = Math.min(d1, localw2.a());
      d2 = Math.max(d2, localw2.a());
      d3 = Math.min(d3, localw2.b());
      d4 = Math.max(d4, localw2.b());
      localy.f();
      if (i1 == 0) {
        break;
      }
    }
    return new t(d1, d3, d2 - d1, d4 - d3);
  }
  
  public boolean canLayout(o paramo)
  {
    if (!o.eg)
    {
      if (a() == null) {
        return true;
      }
      d(paramo);
    }
    boolean bool = b(paramo);
    e(paramo);
    return bool;
  }
  
  private z a(int paramInt1, a.d.w paramw, double paramDouble, boolean paramBoolean, int paramInt2)
  {
    boolean bool = o.eg;
    int i3 = o.dg;
    z localz = new z();
    if (!bool) {
      if (paramInt1 == this.r)
      {
        i1 = 3 * (paramInt2 - 1);
        if ((!bool) && (i3 == 0)) {
          break label113;
        }
      }
    }
    if (!bool)
    {
      if (paramInt1 == this.s)
      {
        i1 = 2 * (paramInt2 - 1);
        if ((!bool) && (i3 == 0)) {
          break label113;
        }
      }
      if (bool) {}
    }
    else if (paramInt1 == this.t)
    {
      i1 = paramInt2 - 1;
      if ((!bool) && (i3 == 0)) {
        break label113;
      }
    }
    int i1 = 0;
    label113:
    double d1 = 3.141592653589793D / (2 * (paramInt2 - 1));
    double d2;
    double d3;
    if (!bool) {
      if (paramBoolean)
      {
        i2 = i1;
        do
        {
          if (i2 >= i1 + paramInt2) {
            break;
          }
          d2 = Math.cos(i2 * d1) * paramDouble + paramw.a();
          d3 = Math.sin(i2 * d1) * paramDouble + paramw.b();
          if (!bool)
          {
            if (i3 != 0) {
              break label310;
            }
            localz.add(new a.d.w(d2, d3));
            i2++;
          }
        } while (i3 == 0);
      }
    }
    int i2 = i1 + paramInt2 - 1;
    do
    {
      if (i2 < i1) {
        break;
      }
      d2 = Math.cos(i2 * d1) * paramDouble + paramw.a();
      d3 = Math.sin(i2 * d1) * paramDouble + paramw.b();
      if (!bool)
      {
        if (i3 != 0) {
          break label310;
        }
        localz.add(new a.d.w(d2, d3));
        i2--;
      }
    } while (i3 == 0);
    label310:
    return localz;
  }
  
  private z a(int paramInt, a.d.w paramw, double paramDouble, boolean paramBoolean)
  {
    int i1 = Math.max(3, (int)Math.ceil(3.141592653589793D * paramDouble * 0.5D / 5.0D));
    return a(paramInt, paramw, paramDouble, paramBoolean, i1);
  }
  
  private z a(int[] paramArrayOfInt, t paramt, double paramDouble, boolean paramBoolean)
  {
    boolean bool = o.eg;
    int i2 = o.dg;
    z localz1 = new z();
    int i1 = 0;
    if (i1 < paramArrayOfInt.length) {
      if (!bool) {
        if (paramArrayOfInt[i1] == this.r)
        {
          localw = new a.d.w(paramt.d() + paramt.b() - paramDouble, paramt.e() + paramDouble);
          localz2 = a(this.r, localw, paramDouble, paramBoolean);
          localz1.a(localz2);
          if (bool) {
            break label320;
          }
          if (i2 == 0) {
            break label315;
          }
        }
      }
    }
    label315:
    label320:
    while (bool)
    {
      a.d.w localw;
      z localz2;
      if (!bool) {
        if (paramArrayOfInt[i1] == this.s)
        {
          localw = new a.d.w(paramt.d() + paramDouble, paramt.e() + paramDouble);
          localz2 = a(this.s, localw, paramDouble, paramBoolean);
          localz1.a(localz2);
          if (bool) {
            break label320;
          }
          if (i2 == 0) {
            break label315;
          }
        }
      }
      if (!bool)
      {
        if (paramArrayOfInt[i1] == this.t)
        {
          localw = new a.d.w(paramt.d() + paramDouble, paramt.e() + paramt.c() - paramDouble);
          localz2 = a(this.t, localw, paramDouble, paramBoolean);
          localz1.a(localz2);
          if (bool) {
            break label320;
          }
          if (i2 == 0) {}
        }
        else
        {
          if (bool) {
            break label320;
          }
        }
      }
      else if (paramArrayOfInt[i1] == this.u)
      {
        localw = new a.d.w(paramt.d() + paramt.b() - paramDouble, paramt.e() + paramt.c() - paramDouble);
        localz2 = a(this.u, localw, paramDouble, paramBoolean);
        localz1.a(localz2);
      }
      i1++;
      if (i2 == 0) {
        break;
      }
    }
    return localz1;
  }
  
  protected void c(o paramo)
  {
    boolean bool = o.eg;
    int i4 = o.dg;
    Object localObject1;
    Object localObject2;
    if (((!bool) && (this.q != null)) || (this.v))
    {
      localw = paramo.v();
      label303:
      label305:
      label308:
      do
      {
        do
        {
          if (!localw.e()) {
            break;
          }
          localObject1 = paramo.o(localw.d());
          localObject2 = (a.d.w)this.q.get(localw.d());
          if (i4 != 0) {
            break label335;
          }
          if ((!((a.d.w)localObject1).equals(localObject2)) && ((bool) || (localObject2 != null)))
          {
            double d1 = ((a.d.w)localObject1).a - ((a.d.w)localObject2).a;
            double d2 = ((a.d.w)localObject1).b - ((a.d.w)localObject2).b;
            m localm2 = localw.d().m();
            do
            {
              if (!localm2.e()) {
                break label308;
              }
              if (i4 != 0) {
                break;
              }
              if ((localm2.a().g()) && (!a(paramo, localm2.a())))
              {
                z localz1;
                do
                {
                  localz1 = paramo.m(localm2.a());
                  if ((!bool) && (localz1.size() <= 0)) {
                    break;
                  }
                  v localv = localz1.f();
                  do
                  {
                    if (localv == null) {
                      break;
                    }
                    a.d.w localw1 = (a.d.w)localv.c();
                    localw1 = new a.d.w(localw1.a + d1, localw1.b + d2);
                    localv.a(localw1);
                    localv = localv.a();
                    if (bool) {
                      break label305;
                    }
                    if (i4 != 0) {
                      break label303;
                    }
                  } while (i4 == 0);
                } while (bool);
                paramo.b(localm2.a(), localz1);
              }
              localm2.f();
            } while (i4 == 0);
          }
          localw.f();
        } while (bool);
      } while (i4 == 0);
    }
    a.c.w localw = paramo.v();
    label335:
    label2769:
    do
    {
      if (!localw.e()) {
        break;
      }
      localObject1 = localw.d();
      Object localObject3;
      do
      {
        localObject2 = new ab();
        m localm1 = ((e)localObject1).n();
        do
        {
          if (!localm1.e()) {
            break;
          }
          localObject3 = localm1.a();
          if (i4 != 0) {
            break label437;
          }
          if (((d)localObject3).g())
          {
            if (bool) {
              continue;
            }
            if (a(paramo, (d)localObject3)) {
              ((ab)localObject2).add(localObject3);
            }
          }
          localm1.f();
        } while (i4 == 0);
      } while (bool);
      if (!((ab)localObject2).isEmpty())
      {
        int i1 = ((ab)localObject2).size();
        localObject3 = ((ab)localObject2).p();
        zc localzc = paramo.k((e)localObject1);
        double d3 = localzc.a();
        double d4 = localzc.b();
        double d5 = localzc.a() + localzc.c();
        double d6 = localzc.b() + localzc.d();
        double d7 = localzc.c() * 0.5D;
        double d8 = localzc.d() * 0.5D;
        double d9 = Math.min(d7 / (i1 + 1), this.o);
        double d10 = Math.min(d8 / (i1 + 1), this.o);
        double d11 = Math.min(d10, d9);
        double d12 = (d7 - (i1 - 1) * d11) / 2.0D;
        double d13 = (d8 - (i1 - 1) * d11) / 2.0D;
        double d14;
        double d16;
        double d17;
        int i2;
        int i3;
        d locald;
        double d22;
        Object localObject4;
        z localz2;
        a.d.w localw2;
        do
        {
          do
          {
            do
            {
              if (this.m == 1)
              {
                d12 = (d7 - (i1 - 1) * d9) / 2.0D;
                d13 = (d8 - (i1 - 1) * d10) / 2.0D;
              }
              d14 = 6.0D;
              double d15 = 12.0D;
              d16 = d14 + Math.max(15.0D, d14 + d15 - d13);
              d17 = d14 + Math.max(15.0D, d14 + d15 - d12);
              i2 = a(paramo, (e)localObject1);
              if (!bool) {
                if (this.n)
                {
                  if (bool) {
                    break;
                  }
                  if (i2 != this.s) {
                    continue;
                  }
                }
              }
              i3 = 0;
              do
              {
                if (i3 >= localObject3.length) {
                  break label2761;
                }
                locald = localObject3[i3];
                if (i4 != 0) {
                  break;
                }
                if (this.m == 1)
                {
                  a.d.w[] arrayOfw1 = new a.d.w[5];
                  arrayOfw1[0] = new a.d.w(d3 + d12 + i3 * d9, d4);
                  arrayOfw1[1] = new a.d.w(arrayOfw1[0].a(), d4 - d16 - i3 * this.o);
                  arrayOfw1[4] = new a.d.w(d3, d4 + d13 + i3 * d10);
                  arrayOfw1[3] = new a.d.w(d3 - d17 - i3 * this.o, arrayOfw1[4].b());
                  arrayOfw1[2] = new a.d.w(arrayOfw1[3].a(), arrayOfw1[1].b());
                  d22 = d14 + 0.25D * i3 * (d9 + d10);
                  localObject4 = new z();
                  ((z)localObject4).add(arrayOfw1[0]);
                  ((z)localObject4).a(a(arrayOfw1[1], d22, this.r, false, this.p));
                  ((z)localObject4).a(a(arrayOfw1[2], d22, this.s, false, this.p));
                  ((z)localObject4).a(a(arrayOfw1[3], d22, this.t, false, this.p));
                  ((z)localObject4).add(arrayOfw1[4]);
                  paramo.a(locald, (z)localObject4);
                  if (bool) {
                    continue;
                  }
                  if (i4 == 0) {}
                }
                else
                {
                  double d18 = i3 * d11;
                  localz2 = new z();
                  localObject4 = new a.d.w(d3 + d12 + d18, d4);
                  localz2.add(localObject4);
                  localz2.add(new a.d.w(d3 + d12 + d18, d4 - 15.0D - d18));
                  localz2.add(new a.d.w(d3 - 15.0D - d18, d4 - 15.0D - d18));
                  localz2.add(new a.d.w(d3 - 15.0D - d18, d4 + d13 + d18));
                  localw2 = new a.d.w(d3, d4 + d13 + d18);
                  localz2.add(localw2);
                  paramo.a(locald, localz2);
                }
                i3++;
              } while (i4 == 0);
            } while (bool);
            if (bool) {
              break;
            }
            if (i2 == this.t)
            {
              i3 = 0;
              do
              {
                if (i3 >= localObject3.length) {
                  break label2761;
                }
                locald = localObject3[i3];
                if (i4 != 0) {
                  break;
                }
                if (this.m == 1)
                {
                  a.d.w[] arrayOfw2 = new a.d.w[5];
                  arrayOfw2[0] = new a.d.w(d3 + d12 + i3 * d9, d6);
                  arrayOfw2[1] = new a.d.w(arrayOfw2[0].a(), d6 + d16 + i3 * this.o);
                  arrayOfw2[4] = new a.d.w(d3, d6 - d13 - i3 * d10);
                  arrayOfw2[3] = new a.d.w(d3 - d17 - i3 * this.o, arrayOfw2[4].b());
                  arrayOfw2[2] = new a.d.w(arrayOfw2[3].a(), arrayOfw2[1].b());
                  d22 = d14 + 0.25D * i3 * (d9 + d10);
                  localObject4 = new z();
                  ((z)localObject4).add(arrayOfw2[0]);
                  ((z)localObject4).a(a(arrayOfw2[1], d22, this.u, true, this.p));
                  ((z)localObject4).a(a(arrayOfw2[2], d22, this.t, true, this.p));
                  ((z)localObject4).a(a(arrayOfw2[3], d22, this.s, true, this.p));
                  ((z)localObject4).add(arrayOfw2[4]);
                  paramo.a(locald, (z)localObject4);
                  if (bool) {
                    continue;
                  }
                  if (i4 == 0) {}
                }
                else
                {
                  double d19 = i3 * d11;
                  localz2 = new z();
                  localObject4 = new a.d.w(d3 + d12 + d19, d6);
                  localz2.add(localObject4);
                  localz2.add(new a.d.w(d3 + d12 + d19, d6 + 15.0D + d19));
                  localz2.add(new a.d.w(d3 - 15.0D - d19, d6 + 15.0D + d19));
                  localz2.add(new a.d.w(d3 - 15.0D - d19, d6 - d13 - d19));
                  localw2 = new a.d.w(d3, d6 - d13 - d19);
                  localz2.add(localw2);
                  paramo.a(locald, localz2);
                }
                i3++;
              } while (i4 == 0);
            }
          } while (bool);
          if (bool) {
            break;
          }
          if (i2 == this.r)
          {
            i3 = 0;
            do
            {
              if (i3 >= localObject3.length) {
                break label2761;
              }
              locald = localObject3[i3];
              if (i4 != 0) {
                break;
              }
              if (this.m == 1)
              {
                a.d.w[] arrayOfw3 = new a.d.w[5];
                arrayOfw3[0] = new a.d.w(d5 - d12 - i3 * d9, d4);
                arrayOfw3[1] = new a.d.w(arrayOfw3[0].a(), d4 - d16 - i3 * this.o);
                arrayOfw3[4] = new a.d.w(d5, d4 + d13 + i3 * d10);
                arrayOfw3[3] = new a.d.w(d5 + d17 + i3 * this.o, arrayOfw3[4].b());
                arrayOfw3[2] = new a.d.w(arrayOfw3[3].a(), arrayOfw3[1].b());
                d22 = d14 + 0.25D * i3 * (d9 + d10);
                localObject4 = new z();
                ((z)localObject4).add(arrayOfw3[0]);
                ((z)localObject4).a(a(arrayOfw3[1], d22, this.s, true, this.p));
                ((z)localObject4).a(a(arrayOfw3[2], d22, this.r, true, this.p));
                ((z)localObject4).a(a(arrayOfw3[3], d22, this.u, true, this.p));
                ((z)localObject4).add(arrayOfw3[4]);
                paramo.a(locald, (z)localObject4);
                if (bool) {
                  continue;
                }
                if (i4 == 0) {}
              }
              else
              {
                double d20 = i3 * d11;
                localz2 = new z();
                localObject4 = new a.d.w(d5 - d12 - d20, d4);
                localz2.add(localObject4);
                localz2.add(new a.d.w(d5 - d12 - d20, d4 - 15.0D - d20));
                localz2.add(new a.d.w(d5 + 15.0D + d20, d4 - 15.0D - d20));
                localz2.add(new a.d.w(d5 + 15.0D + d20, d4 + d13 + d20));
                localw2 = new a.d.w(d5, d4 + d13 + d20);
                localz2.add(localw2);
                paramo.a(locald, localz2);
              }
              i3++;
            } while (i4 == 0);
          }
          if (bool) {
            break label2769;
          }
        } while (bool);
        if (i2 == this.u)
        {
          i3 = 0;
          do
          {
            if (i3 >= localObject3.length) {
              break label2761;
            }
            locald = localObject3[i3];
            if (i4 != 0) {
              break;
            }
            if (this.m == 1)
            {
              a.d.w[] arrayOfw4 = new a.d.w[5];
              arrayOfw4[0] = new a.d.w(d5 - d12 - i3 * d9, d6);
              arrayOfw4[1] = new a.d.w(arrayOfw4[0].a(), d6 + d16 + i3 * this.o);
              arrayOfw4[4] = new a.d.w(d5, d6 - d13 - i3 * d10);
              arrayOfw4[3] = new a.d.w(d5 + d17 + i3 * this.o, arrayOfw4[4].b());
              arrayOfw4[2] = new a.d.w(arrayOfw4[3].a(), arrayOfw4[1].b());
              d22 = d14 + 0.25D * i3 * (d9 + d10);
              localObject4 = new z();
              ((z)localObject4).add(arrayOfw4[0]);
              ((z)localObject4).a(a(arrayOfw4[1], d22, this.t, false, this.p));
              ((z)localObject4).a(a(arrayOfw4[2], d22, this.u, false, this.p));
              ((z)localObject4).a(a(arrayOfw4[3], d22, this.r, false, this.p));
              ((z)localObject4).add(arrayOfw4[4]);
              paramo.a(locald, (z)localObject4);
              if (bool) {
                continue;
              }
              if (i4 == 0) {}
            }
            else
            {
              double d21 = i3 * d11;
              localz2 = new z();
              localObject4 = new a.d.w(d5 - d12 - d21, d6);
              localz2.add(localObject4);
              localz2.add(new a.d.w(d5 - d12 - d21, d6 + 15.0D + d21));
              localz2.add(new a.d.w(d5 + 15.0D + d21, d6 + 15.0D + d21));
              localz2.add(new a.d.w(d5 + 15.0D + d21, d6 - d13 - d21));
              localw2 = new a.d.w(d5, d6 - d13 - d21);
              localz2.add(localw2);
              paramo.a(locald, localz2);
            }
            i3++;
          } while (i4 == 0);
        }
      }
      localw.f();
    } while (i4 == 0);
    label437:
    label2761:
    return;
  }
  
  private z a(a.d.w paramw, double paramDouble, int paramInt1, boolean paramBoolean, int paramInt2)
  {
    boolean bool = o.eg;
    z localz = new z();
    if (!bool) {
      if (paramInt2 < 2)
      {
        if (bool) {
          break label195;
        }
        localz.add(paramw);
        if (o.dg == 0) {
          break label193;
        }
      }
    }
    if (!bool) {
      if (paramInt1 == this.r) {
        return a(this.r, paramw.b(-paramDouble, paramDouble), paramDouble, paramBoolean, paramInt2);
      }
    }
    if (!bool) {
      if (paramInt1 == this.s) {
        return a(this.s, paramw.b(paramDouble, paramDouble), paramDouble, paramBoolean, paramInt2);
      }
    }
    if (!bool)
    {
      if (paramInt1 == this.t) {
        return a(this.t, paramw.b(paramDouble, -paramDouble), paramDouble, paramBoolean, paramInt2);
      }
      if (bool) {}
    }
    else if (paramInt1 == this.u)
    {
      return a(this.u, paramw.b(-paramDouble, -paramDouble), paramDouble, paramBoolean, paramInt2);
    }
    if (paramBoolean) {
      localz.j();
    }
    label193:
    label195:
    return localz;
  }
  
  private int a(o paramo, e parame)
  {
    boolean bool = o.eg;
    int i2 = o.dg;
    a.d.w localw1 = paramo.o(parame);
    t localt = paramo.v(parame);
    int[] arrayOfInt = new int[4];
    m localm = parame.l();
    label264:
    label309:
    label361:
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald = localm.a();
      if (i2 != 0) {
        break label377;
      }
      if (locald.g())
      {
        if (bool) {
          continue;
        }
        if (a(paramo, locald)) {}
      }
      else
      {
        z localz = paramo.o(locald);
        if (!bool) {}
        a.d.w localw2 = (a.d.w)(locald.e() == parame ? localz.a() : localz.d());
        if (!bool) {}
        a.d.w localw3 = (a.d.w)(locald.e() == parame ? localz.get(1) : localz.get(localz.size() - 2));
        a.d.w localw4 = a(localt, localw2, localw3);
        if (!bool) {}
        a.d.w localw5 = localw4 != null ? localw4 : localw2;
        double d1 = localw5.a() - localw1.a();
        double d2 = localw5.b() - localw1.b();
        if (!bool) {
          if (d1 > 0.0D)
          {
            if (bool) {
              break label264;
            }
            if (d2 > 0.0D)
            {
              arrayOfInt[this.u] += 1;
              if (bool) {
                continue;
              }
              if (i2 == 0) {
                break label361;
              }
            }
          }
        }
        if (!bool) {
          if (d1 > 0.0D)
          {
            if (bool) {
              break label309;
            }
            if (d2 < 0.0D)
            {
              arrayOfInt[this.r] += 1;
              if (bool) {
                continue;
              }
              if (i2 == 0) {
                break label361;
              }
            }
          }
        }
        if ((bool) || (d1 < 0.0D)) {
          if (!bool)
          {
            if (d2 < 0.0D) {
              arrayOfInt[this.s] += 1;
            }
          }
          else
          {
            if (bool) {
              continue;
            }
            if (i2 == 0) {
              break label361;
            }
          }
        }
        arrayOfInt[this.t] += 1;
      }
      localm.f();
    } while (i2 == 0);
    label377:
    int i1 = this.r;
    if (!bool) {
      if (arrayOfInt[this.s] < arrayOfInt[i1]) {
        i1 = this.s;
      }
    }
    if (!bool)
    {
      if (arrayOfInt[this.t] < arrayOfInt[i1]) {
        i1 = this.t;
      }
      if (bool) {}
    }
    else if (arrayOfInt[this.u] < arrayOfInt[i1])
    {
      i1 = this.u;
    }
    return i1;
  }
  
  private static a.d.w a(t paramt, a.d.w paramw1, a.d.w paramw2)
  {
    boolean bool = o.eg;
    if (!bool)
    {
      if (paramt.a(paramw1)) {
        if (bool) {
          break label34;
        }
      }
    }
    else {
      if (!paramt.a(paramw2)) {
        break label33;
      }
    }
    return null;
    label33:
    label34:
    Point2D.Double localDouble = a(paramt.d, paramt.e, paramt.b(), paramt.c(), paramw1.a, paramw1.b, paramw2.a, paramw2.b, null);
    return new a.d.w(localDouble.x, localDouble.y);
  }
  
  private static Point2D.Double a(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4, double paramDouble5, double paramDouble6, double paramDouble7, double paramDouble8, Point2D.Double paramDouble)
  {
    boolean bool = o.eg;
    if ((bool) || (paramDouble == null)) {
      paramDouble = new Point2D.Double();
    }
    if (((bool) || (paramDouble5 >= paramDouble1)) && ((bool) || (paramDouble6 >= paramDouble2)) && ((bool) || ((paramDouble5 <= paramDouble1 + paramDouble3) && ((bool) || (paramDouble6 <= paramDouble2 + paramDouble4)))))
    {
      double d1 = paramDouble7 - paramDouble5;
      double d2 = paramDouble8 - paramDouble6;
      if (!bool)
      {
        if (d1 == 0.0D)
        {
          if (d2 < 0.0D)
          {
            paramDouble.x = paramDouble5;
            paramDouble.y = paramDouble2;
            return paramDouble;
          }
          paramDouble.x = paramDouble5;
          paramDouble.y = (paramDouble2 + paramDouble4);
          return paramDouble;
        }
        if (bool) {}
      }
      else if (d2 == 0.0D)
      {
        if (d1 < 0.0D)
        {
          paramDouble.x = paramDouble1;
          paramDouble.y = paramDouble6;
          return paramDouble;
        }
        paramDouble.x = (paramDouble1 + paramDouble3);
        paramDouble.y = paramDouble6;
        return paramDouble;
      }
      double d3 = d2 / d1;
      if (!bool) {
        if (d1 > 0.0D)
        {
          d4 = paramDouble6 + d3 * (paramDouble1 + paramDouble3 - paramDouble5);
          if (!bool) {
            if (d4 < paramDouble2)
            {
              paramDouble.x = (paramDouble5 + (paramDouble2 - paramDouble6) / d3);
              paramDouble.y = paramDouble2;
              return paramDouble;
            }
          }
          if (d4 <= paramDouble2 + paramDouble4)
          {
            paramDouble.x = (paramDouble1 + paramDouble3);
            paramDouble.y = d4;
            return paramDouble;
          }
          paramDouble.x = (paramDouble5 + (paramDouble2 + paramDouble4 - paramDouble6) / d3);
          paramDouble.y = (paramDouble2 + paramDouble4);
          return paramDouble;
        }
      }
      double d4 = paramDouble6 + d3 * (paramDouble1 - paramDouble5);
      if (!bool) {
        if (d4 < paramDouble2)
        {
          paramDouble.x = (paramDouble5 + (paramDouble2 - paramDouble6) / d3);
          paramDouble.y = paramDouble2;
          return paramDouble;
        }
      }
      if (d4 <= paramDouble2 + paramDouble4)
      {
        paramDouble.x = paramDouble1;
        paramDouble.y = d4;
        return paramDouble;
      }
      paramDouble.x = (paramDouble5 + (paramDouble2 + paramDouble4 - paramDouble6) / d3);
      paramDouble.y = (paramDouble2 + paramDouble4);
      return paramDouble;
    }
    paramDouble.x = paramDouble5;
    paramDouble.y = paramDouble6;
    return paramDouble;
  }
  
  private boolean a(o paramo, d paramd)
  {
    boolean bool = o.eg;
    if (!bool) {
      if (this.v) {
        return false;
      }
    }
    if (this.q != null)
    {
      k localk = paramo.c(h);
      if ((bool) || (localk != null)) {
        if (bool) {
          break label59;
        }
      }
      label59:
      return !localk.getBool(paramd);
    }
    return true;
  }
  
  private void d(o paramo)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    do
    {
      m localm = paramo.w();
      while (i1 == 0)
      {
        if (!localm.e()) {
          break;
        }
        if (!bool)
        {
          if (localm.a().g())
          {
            this.g.c(localm.a());
            paramo.f(localm.a());
          }
          localm.f();
        }
      }
    } while (bool);
  }
  
  private void e(o paramo)
  {
    boolean bool = o.eg;
    do
    {
      int i1 = o.dg;
      while (i1 == 0)
      {
        if (this.g.isEmpty()) {
          break;
        }
        paramo.g(this.g.o());
      }
    } while (bool);
  }
  
  public boolean f()
  {
    return this.v;
  }
  
  public void b(boolean paramBoolean)
  {
    this.v = paramBoolean;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.ib

 * JD-Core Version:    0.7.0.1

 */